//
//  XYPch.swift
//  WeiboSourceCode
//
//  Created by 周星宇 on 15/12/26.
//  Copyright © 2015年 cn.weibo. All rights reserved.
//

import UIKit


let kSCREENWITH = UIScreen.mainScreen().bounds.size.width

let kSCREENHEIGHT = UIScreen.mainScreen().bounds.size.height

let AppKey = "566183734"

let redirect_uri = "http://www.itheima.com"

let AppSecret = "008655d6e1fa7a38aeefff02651b3e42"

let changeRootViewControllerNotification = "changeRootViewControllerNotification"

let XYStatusCellMargin: CGFloat = 8
// 头像的宽高
let XYStatusCellIconViewWH: CGFloat = 35
// 内容字体大小
let XYStatusCellFontSize: CGFloat = 15
// 点击表情通知
let XYDidClickEmoticonBtnNotification = "XYDidClickEmoticonBtnNotification"
let XYDidClickDeleteBtnNotification = "XYDidClickDeleteBtnNotification"
/// 选中照片通知
let WBStatusSelectedPhotoNotification = "WBStatusSelectedPhotoNotification"
/// 选中照片的 KEY - IndexPath
let WBStatusSelectedPhotoIndexPathKey = "WBStatusSelectedPhotoIndexPathKey"
/// 选中照片的 KEY - URL 数组
let WBStatusSelectedPhotoURLsKey = "WBStatusSelectedPhotoURLsKey"
// 随机颜色
func RandomColor() -> UIColor {
    
    return UIColor(red: CGFloat(arc4random() % 256) / 255, green: CGFloat(arc4random() % 256) / 255, blue: CGFloat(arc4random() % 256) / 255, alpha: 1)
}
/// 打印 Log
///
/// - parameter message:  打印的内容
/// - parameter file:     文件名
/// - parameter line:     打印行数
/// - parameter function: 方法
/// 需要在 BuildSetting 里面找到 Other Swift flags 添加 `-D DEBUG`，如果上线，去掉
//func print(message: Any, file: String = __FILE__, line: Int = __LINE__, function: String = __FUNCTION__) {
//    #if DEBUG
//    print("\((file as NSString).lastPathComponent)[\(line)], \(function): \(message)")
//    #endif
//}